import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  mode: 'history',
  routes: [
    {
      path: '/agent/index', // 首页
      component: require('@/views/agent/center'),
      name: 'agent'
    },
    {
      path: '/agent/detail', // 订单详情
      component: require('@/views/agent/orderDetail'),
      name: 'detail'
    },
    {
      path: '/agent/record', // 提现记录
      component: require('@/views/agent/drawRecord'),
      name: 'record'
    },
    {
      path: '/agent/partner', // 我的合伙人
      component: require('@/views/agent/myPartner'),
      name: 'partner'
    },
    {
      path: '/agent/intro', // 代理人机制介绍
      component: require('@/views/agent/intro'),
      name: 'intro'
    },
    {
      path: '/agent/fans', // 我的粉丝
      component: require('@/views/agent/myFans'),
      name: 'fans'
    },
    {
      path: '/agent/invite', // 招募合伙人
      component: require('@/views/agent/invite'),
      name: 'invite'
    },
    {
      path: '/agent/guide', // 玩法指南
      component: require('@/views/agent/guide'),
      name: 'guide'
    }
  ]
})

export default router;
